package edu.sctu.zhuyingzhi.month201505.day20150515.threadTest;

/**
 * Created by user13 on 2015/5/15.
 */
public class MilitaryBase extends Thread{
    @Override
    public void run() {
        System.out.println("运输队接到指令 准备运输");
        try {
            for(int i = 1;i<4;i++){
                sleep(1000);
                System.out.println("第"+i+"货物出库");
            }
                sleep(1000);
                System.out.println("运输中.........");
                sleep(3000);

            for(int i = 1;i<4;i++){
                sleep(1000);
                System.out.println("第"+i+"货物到达");
            }

            System.out.println();
        }catch (Exception e){
            System.out.println("敌军突袭 未能送达");
        }
    }


}
